package org.mdrtwell.jdk15;

import java.util.ArrayList;
import java.util.Collection;

public class BoxTest {
	public static void main(String[] args) {
		Collection<Integer> col = new ArrayList<Integer>();
		int e = 3;
		// �Զ�װ�䣬AutoBoxing��int �� Integer
		col.add(e);
		col.add(e + 2);
		for (Integer integer : col) {
			System.out.println(integer);
		}
	}
}
